package Person;

import java.util.Scanner;

public class TestPerson {

	public static void main(String[] args) {
		Person Per[] = new Person[3];
		for (int i = 0; i < Per.length; i++) {
			Scanner sc = new Scanner(System.in);
			System.out.println("please input person " + (i + 1) + " name");
			String Name = sc.nextLine();
			System.out.println("please input person " + (i + 1) + " address");
			String address = sc.nextLine();
			System.out.println("please input person " + (i + 1) + " number");
			int ppsNo = sc.nextInt();
			Per[i] = new Person(Name, address, ppsNo);
			sc.close();
		}
		Per[0].getName();
		Per[0].getAddress();
		Per[0].getPPSNo();
		Per[1].setName("Paul Smyth");
		Per[1].setAddress("Dublin");
		for (int i = 0; i < Per.length; i++) {
			Per[i].showPerson();
		}
		System.out.println(Per[2].toString());
	}
}
